<div id="solvay_content2010">
	<{include file="alumni/public/left_menu.tpl"}>
      
  <div id="content2010_right">
    <div class="ctn_contentright2010">
      <{include file="alumni/public/top_menu.tpl"}>
      <div class="content_tab">
        <div class="title_contenttab">
          <table cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr>
                <td align="left"> avatar</td>
              </tr>
          </table>
        </div>
        <div class="ctn_texttab">
          <table cellpadding="0" cellspacing="0" border="0" width="100%">
              <tr>
                <td width="190">
                  <img src="<{$smarty.const.APPLICATION_URL}>public/css/img/solvay2010_imgright_avatar170x180.png" width="170" height="180" style="background:url(<{$smarty.const.APPLICATION_URL}>images/avatar/<{$MEMBER_LOGIN.avatar}>) no-repeat center top" alt="" />
                 </td>
                  <td valign="top">
                  <form name="frmEditAvatar" id="frmEditAvatar" action="<{$smarty.const.APPLICATION_URL}>alumni/profile/edit/avatar" method="post" onSubmit="return checkEditAvatar(this)" enctype="multipart/form-data" target="ifrm_upload">
                    <table cellpadding="0" cellspacing="0" border="0" width="100%">
                      <tr>
                        <td class="text_14">
                        	<input type="file" name="avatar" id="avatar" class="input2010_300"  />
                        </td>
                      </tr>
                     <tr>
                          <td height="5"></td>
                      </tr>
                      <tr>
                          <td  class="text_13_noline">- Hình ảnh định dạng *.JPG, *.JPEG, *.PNG, *GIF<br />
                    - Mỗi hình ko quá 2MB</td>
                      </tr>
                      <tr>
                          <td height="15"></td>
                      </tr> 
                      <tr>
                          <td>
                          	<input type="submit" name="btnSubmit" id="btnSubmit" class="btn_login2010" value="Upload" />
                          </td>
                      </tr>
                    </table>
                   </form>
                  </td>
                </tr>
                <tr>
                  <td colspan="2" height="10"></td>
                </tr>
              </table>
            </div>
     	</div>
   	</div>
 	</div>
</div>
<script type="text/javascript">
	function endChangeAvatar(results)
	{
		if ( results == "SUCCESS" )
		{
			window.location.href = window.location.protocol + "//" + window.location.host + window.location.pathname;
			alert("Action successfully!");
		}
		else
			alert("Action unsuccessfully!");
	}
	function checkEditAvatar(p_objForm)
	{
		if ( trim(p_objForm.avatar.value) == "" )
		{
			alert("Please choose image to uploading!");
			p_objForm.avatar.focus();
			return false;
		}
	}
</script>